package com.easybuy.entity;
/**
 * EasybuyOrderDetail 实体类
 * 对应数据库表 easybuy.easybuy_order_detail
 */
public class EasybuyOrderDetail {
    // 主键
    private Integer id;

    // 订单主键
    private Integer orderId;

    // 商品主键
    private Integer productId;

    // 数量
    private Integer quantity;

    // 消费
    private Float cost;

    // 无参构造函数
    public EasybuyOrderDetail() {
    }

    // 带参构造函数
    public EasybuyOrderDetail(Integer id, Integer orderId, Integer productId, Integer quantity, Float cost) {
        this.id = id;
        this.orderId = orderId;
        this.productId = productId;
        this.quantity = quantity;
        this.cost = cost;
    }

    // Getter 和 Setter 方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Float getCost() {
        return cost;
    }

    public void setCost(Float cost) {
        this.cost = cost;
    }

    @Override
    public String toString() {
        return "EasybuyOrderDetail{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", productId=" + productId +
                ", quantity=" + quantity +
                ", cost=" + cost +
                '}';
    }
}